package com.bgrconsulting.stockorderentry.service.model.response;

import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.bgrconsulting.stockorderentry.service.model.Account;
import com.bgrconsulting.stockorderentry.service.model.AccountBalance;
import com.bgrconsulting.stockorderentry.service.model.CashAccountBalance;
import com.bgrconsulting.stockorderentry.service.model.DTBalance;
import com.bgrconsulting.stockorderentry.service.model.MarginAccountBalance;

public class AccountResponse extends Account {
	
	public AccountResponse(String masterAccount,
			String accountDesc, 
			String accountId, 
			String marginLevel, 
			String optionLevel, 
			Double netAccountValue, 
			String registrationType,
			AccountBalance accountBalance,
			DTBalance dtBalance,
			MarginAccountBalance marginAccountBalance,
			CashAccountBalance cashAccountBalance
			) 
	{
		
		super(masterAccount, 
				accountDesc, 
				accountId, 
				marginLevel,
		        optionLevel,
		        netAccountValue,
		        registrationType,
		        accountBalance,
		        dtBalance,
		        marginAccountBalance,
		        cashAccountBalance);
		
	}
	
	public AccountResponse(String accountDesc, 
			String accountId, 
			String marginLevel, 
			String optionLevel, 
			Double netAccountValue, 
			String registrationType
			) 
	{
		super(accountDesc,
				accountId,
				marginLevel,
				optionLevel,
				netAccountValue,
				registrationType);
	}
	
	public AccountResponse() {
		super();
	
	}
	
	public String getAccountandMasterAccount() {
		return this.getAccountId() + "-" + this.getAccountandMasterAccount();
	}
}
